#include "klccard.h"
#include <kdebug.h>

KLCCard::KLCCard(City city, int value, bool isMultiplier)
{
	m_city = city;
    m_value = value;
    m_isMultiplier = isMultiplier;
    m_klcCardItem = new KLCCardGI(this);
}

KLCCard::KLCCard(const int generator) {
    int intColour;
    int cardValue;
    City cityName=Atlantis;
    bool isFinallyMultiplier;
  //  kDebug() << 'Generator in ' << generator;
    intColour = generator / 13;
    cardValue = generator % 13;
    switch (intColour) {
        case 0:
            cityName = Atlantis;
            break;
        case 1:
            cityName = Cibola;
            break;
        case 2:
            cityName = Aoudaghost;
            break;
        case 3:
            cityName = Karakorum;
        case 4:
            cityName = Yamatai;
            break;
        default:
            break;
    }
    
    if (cardValue >=10) {
        isFinallyMultiplier = true;
    }
    else {
        isFinallyMultiplier = false;
    }
    KLCCard(cityName, cardValue, isFinallyMultiplier);
}
